String.prototype.toTitleCase = function() {
	var ret = "";
	var words = this.split(" ");
	for(var i=0; i<words.length; i++) {
		ret += " " + words[i].substr(0,1).toUpperCase() + words[i].	substr(1);
	}
	
	return ret.replace(/^\s/,"");
};